import { getLocal } from "../store";
const getConfig = (url, options) => {
  const config = {
    url,
    headers: { "Content-Type": "application/json" },
    ...options,
  };
  config.headers["x-token"] = getLocal("TOKEN");
  return config;
};

export default getConfig;
